package com.tpay.shared.exception;

import com.gwtplatform.dispatch.shared.ActionException;

public class MyException extends RuntimeException {
	private static final long serialVersionUID = -1931139145688047772L;
	//	private String message;
//	private Throwable inner;
	private String errorCode;	// 사용자 생성 에러코드
	
	public MyException() {
		super();
	}
	
	public MyException(String message, Throwable cause) {
		super(message, cause);
//		
//		this.message = message;
//		this.inner = cause;
	}
	
	public MyException(String message, String errorCode) {
		super(message);
		
//		this.message = message;
		this.errorCode = errorCode;
	}
	
	public MyException(String message) {
		super(message);
		
//		this.message = message;
	}
	
	public MyException(Throwable cause) {
		super(cause);

//		this.message = cause.getMessage();
//		this.inner = cause;
	}

	public String getErrorCode() {
		return errorCode;
	}
}
